Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Reduce java memory options to 128M #43

Merged
merged 1 commit into from
Nov 17, 2015
Merged

Reduce java memory options to 128M #43

merged 1 commit into from
Nov 17, 2015

Conversation

pbrisbin
Copy link
Contributor

These numbers were (and still are) a bit of a shot in the dark:

  1. This cannot limit total process memory; it's technically a limit on the
    JVM's heap size, which will indirectly impact total process memory[1]
  2. With the previous limit of 384M, it's suspected a fork operation
    would require double that (768M), which is already over the 512M
    engine-level limit

Therefore, we're going to experiment with a lower, 128M limit.

1: http://stackoverflow.com/questions/1493913/how-to-set-the-maximum-memory-usage-for-jvm

/cc @codeclimate/review

These numbers were (and still are) a bit of a shot in the dark:

1. This cannot limit total process memory; it's technically a limit on
   the JVM's heap size, which will indirectly impact total process
   memory[1]

2. With the previous limit of 384M, it's suspected a fork operation
   would require double that (768M), which is already over the 512M
   engine-level limit

Therefore, we're going to experiment with a lower, 128M limit.

1: http://stackoverflow.com/questions/1493913/how-to-set-the-maximum-memory-usage-for-jvm
@fhwang
Copy link

fhwang commented Nov 17, 2015

LGTM, enough for a try at any rate.

pbrisbin added a commit that referenced this pull request Nov 17, 2015
Reduce java memory options to 128M
@pbrisbin pbrisbin merged commit a04e138 into master Nov 17, 2015
@pbrisbin pbrisbin deleted the pb-mem-limits branch November 17, 2015 16:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants